﻿@page "/"
@inject NavigationManager Nav

<Flex Style="height: 50vh;background-color: #eeeeee" Justify="center" Align="center">
    <div>
        <h1 style="text-align: center;font-size: 64px">WeatherCore</h1>
        <p style="text-align: center">一个基于和风天气的开源天气系统</p>
        <div style="text-align: center">
            <Space Size="@AntSizeLDSType.Large">
                <SpaceItem>
                    <Button Size="@AntSizeLDSType.Large" Shape="@ButtonShape.Round" Type="@ButtonType.Primary" OnClick="@(() => Nav.NavigateTo("/TheWeather", true))">
                        看看天气
                    </Button>
                </SpaceItem>
                <SpaceItem>
                    <Button Size="@AntSizeLDSType.Large" Icon="@IconType.Fill.Github" Shape="@ButtonShape.Round" OnClick="@(() => Nav.NavigateTo("https://gitee.com/luckyfishisdashen/WeatherCore", true))">
                        去看看代码
                    </Button>
                </SpaceItem>
            </Space>
        </div>
    </div>
</Flex>